package fr.noe.amicaleloisirs.concours.utils;

public class IndexGetter {

    private static IndexGetter instance = null;
    private int current = 0;

    public static IndexGetter get() {
        if (instance == null)
            instance = new IndexGetter();
        return instance;
    }

    public int nextInt() {
        current++;
        return current;
    }

    public void reset() {
        current = 0;
    }

}

